package com.itheima.a;

public class Test {
    public static void main(String[] args) {
        Student stu=new Student();

        try {
            stu.setAge(66);
        } catch (AgeException e) {
            e.printStackTrace();
        }

        try {
            stu.setSex("哈哈");
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
